#pragma once

#include "parser.h"
#include "datapacket.h"
#include "timeslot.h"

class CMediaReader
{
public:
	CMediaReader( CString );
	virtual ~CMediaReader(void);
protected :

	CString filename ;
	Parser * parser;

public :
	virtual BOOL	Initialize() = 0;
	virtual CString GetSDP() = 0;
	virtual CTimeSlot * GetTimeSlot( DWORD ) = 0 ;
    virtual DWORD   GetDuration() = 0;
    virtual void    Close() = 0;
	virtual DWORD *	GetLengthTable() = 0;
	virtual DWORD	GetSecondNum() = 0;

	virtual CDataPacket *	GetFirstDataPacket() = 0;
};
